package org.platform.lwc.system.service.impl;

import org.platform.lwc.system.dto.SysUserRegisterDTO;
import org.platform.lwc.system.entity.SysUser;
import org.platform.lwc.system.mapper.SysUserMapper;
import org.platform.lwc.system.service.ISysUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.platform.lwc.tool.api.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 系统用户表 服务实现类
 * </p>
 *
 * @author lwc
 * @since 2022-03-30
 */
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements ISysUserService {
    @Autowired
    private PasswordEncoder passwordEncoder;



    @Override
    public R register(SysUserRegisterDTO dto) {
        //密码需要用该方法加密
        passwordEncoder.encode("123456");
        return null;
    }





}
